import request from '@/utils/request'
import qs from 'qs'
export function fetchList(query) {
  return request({
    url: '/super/admins',
    method: 'get',
    params: query
  })
}

export function addArticle(data) {
  return request({
    url: '/super/admin',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function deleteArticle(id) {
  return request({
    url: '/super/admin',
    method: 'delete',
    params: { id }
  })
}

export function resetArticle(id) {
  return request({
    url: `/super/password`,
    method: 'put',
    params: { id }
  })
}

